#include <iostream>
#include <windows.h>
#include"Widget.h"



int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)
//int main()
{
    //Widget widget(1400, 800);
    //获取屏幕的分辨率
    //locale::global(std::locale("chs"));
    int screenWidth = GetSystemMetrics(SM_CXSCREEN);
    int screenHeight = GetSystemMetrics(SM_CYSCREEN);
    //使用屏幕分辨率初始化大窗口
    Widget widget(screenWidth/2, screenHeight/2);
    if (widget.init()) {
        widget.run();
        widget.close();
    }
    return 0;
}